#include <QtGui/QApplication>
#include "mainwindow.h"

#include <QTextCodec>

#if defined(Q_WS_S60)
#include <eikenv.h>
#include <aknappui.h>
#include <avkon.rsg>
#endif

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);
  QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    MainWindow w;
#if defined(Q_WS_S60)
    w.showMaximized();

    CAknAppUi *appUi = static_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi());
    if (appUi) {
      appUi->StatusPane()->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_SMALL);
    }
    //w.showMaximized();
#else
    w.show();
#endif

    return a.exec();
}
